<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
    <button onclick="GetGuiJi()">获取设备历史轨迹</button>

    <button onclick="GetGPS()">获取GPS状态</button>
    <script>
        function GetGuiJi(){
            const url="http://120.55.51.241:8080/StandardApiAction_queryTrackDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000&begintime=2015-12-25 00:00:00&endtime=2015-12-30 23:59:59&distance=0&parkTime=0&currentPage=1&pageRecords=50&toMap=1";
            // $.get(url,function(data){
            //     console.log(data);
            // })

            $.ajax({
                type:'POST',
                url: url,
                // data: data,
                cache:false,
                dataType:'json',
                success:function (data) {
                    console.log(data);
                },
                error:function(XMLHttpRequest, textStatus, errorThrown){
                    console.log(XMLHttpRequest, textStatus, errorThrown);
                }
            });
        }
        function GetGPS(){
            const url="http://120.55.51.241:8080/StandardApiAction_getDeviceStatus.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000&toMap=1&driver=0&language=zh";
            $.get(url,function(data){
                console.log(data);
            })
        }
    </script>
</body>
</html>